clear all
close all
clc

filename = 'mplayer.zip';
fid = fopen(filename, 'r');
content = uint8( fread(fid) );
fclose (fid);

fid = fopen('code','w');
code_str = sprintf('code = [');
n = 1;

% while n  <= length(content)
%     code_str = sprintf('%s%03d,', code_str, content(n));  
%     n = n+1;
% end

strin = sprintf('%03d,', content); 
code_str = [code_str, strin, '];'];

fprintf(fid, '%s\n', code_str);
fclose(fid);


